<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    /* var num=100;
    function sayNum(){
        num=200;
        console.log(num);
    }
   // console.log(num);
    sayNum();
    console.log(num); */
    
     
    /* var a1=10;
    var a2=20; 
    alert("a1+a2="+a1+a2); */
    /* var s1=parseInt("101中学"); 
    document.write(s1); */
    /* var x; 
    document.write(typeof x);
 */

   for(var x=1;x<=6;x++){
        if(x==1){
            document.write("<h1>1级标题<h1>");
            continue;
        }
           
        if(x==2){
            document.write("<h2>2级标题<h2>");
            continue;
        }
           
        if(x==3){
            document.write("<h3>三级标题<h3>");
            continue;
        }
           
        if(x==4){
            document.write("<h4>4级标题<h4>");
            continue;
        }
           
        if(x==5){
            document.write("<h5>5级标题<h5>");
            continue;
        }
           
        if(x==6){
            document.write("<h6>6级标题<h6>");
            break;
        }
    }  
</script>
</html>